package net.learn.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import net.learn.framework.common.page.PageResult;
import net.learn.framework.common.service.BaseService;
import net.learn.system.entity.SysAnswerEntity;
import net.learn.system.entity.SysFillEntity;
import net.learn.system.query.SysAnswerQuery;
import net.learn.system.vo.SysAnswerVO;

import java.util.List;

/**
 * @author 李立志
 * @since 2022-04-01
 */
public interface SysAnswerService extends BaseService<SysAnswerEntity> {
    Boolean addAnswer(SysAnswerVO vo);

    Boolean updateAnswer(SysAnswerVO vo);

    void delete(List<Long> idList);

    List<SysAnswerVO> qryAnswerList();

    List<SysAnswerVO> qryPaperAnswerList(SysAnswerQuery qry);

    List<SysAnswerVO> qryAnswerRandList(SysAnswerQuery qry);

    List<SysAnswerVO> qryPaperAnswerCondition(SysAnswerQuery qry);

    PageResult<SysAnswerVO> qryAnswerListPage(SysAnswerQuery qry);

    PageResult<SysAnswerVO> qryQuestionAnswer(SysAnswerQuery qry);
}
